
<ion-view view-title="串口" class="demo-serial-view">
    <ion-content delegate-handle="demoSerialScroll">
        <div ng-repeat="detail in data.dataArray track by $index" class="demo-serial-data">{{detail}}</div>
    </ion-content>
    <ion-footer-bar>
        <div class="row">
            <label class="demo-serial-input-col col" ng-click="selectDevice()">
                <input type="text" placeholder="请选择设备" readonly="true" ng-model="data.deviceName">
                <i class="icon ion-chevron-down"></i>
            </label>
            <label class="demo-serial-input-col col" ng-click="selectBaudrate()">
                <input type="text" placeholder="请选择波特率" readonly="true" ng-model="data.baudrate">
                <i class="icon ion-chevron-down"></i>
            </label>
            <label class="demo-serial-input-col col" ng-click="selectFormat()"  style="max-width: 150px;">
                <input type="text" placeholder="请选择输出格式" readonly="true" ng-model="data.format">
                <i class="icon ion-chevron-down"></i>
            </label>
            <label class="checkbox-input col" style="max-width: 150px;">
                <input type="checkbox" class="im-checkbox" ng-model="data.autoClear">
                <span>自动清除</span>
            </label>
            <button class="button col" style="max-width: 100px;" ng-click="portOperate()">{{data.portState}}</button>
            <button class="button col" style="max-width: 100px;" ng-click="clearData()">清除</button>
        </div>
    </ion-footer-bar>
</ion-view>